package com.itheima.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.itheima.dao.MobileSetmealDao;
import com.itheima.pojo.Setmeal;
import com.itheima.service.MobileSetmealService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
@Service(interfaceClass = MobileSetmealService.class)
@Transactional
public class MobileSetmealServiceImpl implements MobileSetmealService {
    @Autowired
    private MobileSetmealDao mobileSetmealDao;
    @Override
    public List<Setmeal> getSetmeal() {
        return mobileSetmealDao.getSetmeal();
    }
    @Override
    public Setmeal findById(int id){
       return  mobileSetmealDao.findById(id);
    }
}
